package sxkyxt.kjyxgs.cn.ishop_gather_uploading_android;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @version V1.0 <描述当前版本功能>.
 * @filename: sxkyxt.kjyxgs.cn.ishop_gather_uploading_android
 * @Author HY  on {Administrator}.
 * @Org 山西科远信通科技有限公司.
 * @Description: ${TODO} .
 * @Motto 大梦谁先觉, 贫僧我自知..
 * @Date 2018/11/30
 */
public class LoginBean implements Parcelable {


    /**
     * code : 100
     * msg : 操作成功咯.......
     * extend : {"shop":{"sid":94,"sphone":"15203412754","semail":"","saccount":"","spassword":"6a9d7f070aec51d2b900086476f95b2f977e121e286e7c52acb1ce1281551133","sname":"","spic":"","sdeliveryphone":"","srealname":"","smerchantpic":"","scardcode":"","scardfront":"","scardback":"","slicensecode":"","slicensepic":"","sentertime":"","sbusinesshours":"","sdeliveryprice":"","sscore":0,"sscorenumber":0,"sorderlevel":"","sdistrict":"","saddress":"","slongtitude":"","slatitude":"","stoken":"","wxpaypic":"","alipaypic":"","wxAliPayPic":"","sregtime":1543542338000,"sauthentication":"0"},"token":"62ed41268ab0eca7a98c1fed96acff52d62d32f5304b03e255c77e8a7886ae3c"}
     */

    private int code;
    private String msg;
    private ExtendBean extend;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ExtendBean getExtend() {
        return extend;
    }

    public void setExtend(ExtendBean extend) {
        this.extend = extend;
    }

    public static class ExtendBean implements Parcelable {
        /**
         * shop : {"sid":94,"sphone":"15203412754","semail":"","saccount":"","spassword":"6a9d7f070aec51d2b900086476f95b2f977e121e286e7c52acb1ce1281551133","sname":"","spic":"","sdeliveryphone":"","srealname":"","smerchantpic":"","scardcode":"","scardfront":"","scardback":"","slicensecode":"","slicensepic":"","sentertime":"","sbusinesshours":"","sdeliveryprice":"","sscore":0,"sscorenumber":0,"sorderlevel":"","sdistrict":"","saddress":"","slongtitude":"","slatitude":"","stoken":"","wxpaypic":"","alipaypic":"","wxAliPayPic":"","sregtime":1543542338000,"sauthentication":"0"}
         * token : 62ed41268ab0eca7a98c1fed96acff52d62d32f5304b03e255c77e8a7886ae3c
         */

        private ShopBean shop;
        private String token;

        public ShopBean getShop() {
            return shop;
        }

        public void setShop(ShopBean shop) {
            this.shop = shop;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public static class ShopBean implements Parcelable {
            /**
             * sid : 94
             * sphone : 15203412754
             * semail :
             * saccount :
             * spassword : 6a9d7f070aec51d2b900086476f95b2f977e121e286e7c52acb1ce1281551133
             * sname :
             * spic :
             * sdeliveryphone :
             * srealname :
             * smerchantpic :
             * scardcode :
             * scardfront :
             * scardback :
             * slicensecode :
             * slicensepic :
             * sentertime :
             * sbusinesshours :
             * sdeliveryprice :
             * sscore : 0
             * sscorenumber : 0
             * sorderlevel :
             * sdistrict :
             * saddress :
             * slongtitude :
             * slatitude :
             * stoken :
             * wxpaypic :
             * alipaypic :
             * wxAliPayPic :
             * sregtime : 1543542338000
             * sauthentication : 0
             */

            private int sid;
            private String sphone;
            private String semail;
            private String saccount;
            private String spassword;
            private String sname;
            private String spic;
            private String sdeliveryphone;
            private String srealname;
            private String smerchantpic;
            private String scardcode;
            private String scardfront;
            private String scardback;
            private String slicensecode;
            private String slicensepic;
            private String sentertime;
            private String sbusinesshours;
            private String sdeliveryprice;
            private int sscore;
            private int sscorenumber;
            private String sorderlevel;
            private String sdistrict;
            private String saddress;
            private String slongtitude;
            private String slatitude;
            private String stoken;
            private String wxpaypic;
            private String alipaypic;
            private String wxAliPayPic;
            private long sregtime;
            private String sauthentication;

            public int getSid() {
                return sid;
            }

            public void setSid(int sid) {
                this.sid = sid;
            }

            public String getSphone() {
                return sphone;
            }

            public void setSphone(String sphone) {
                this.sphone = sphone;
            }

            public String getSemail() {
                return semail;
            }

            public void setSemail(String semail) {
                this.semail = semail;
            }

            public String getSaccount() {
                return saccount;
            }

            public void setSaccount(String saccount) {
                this.saccount = saccount;
            }

            public String getSpassword() {
                return spassword;
            }

            public void setSpassword(String spassword) {
                this.spassword = spassword;
            }

            public String getSname() {
                return sname;
            }

            public void setSname(String sname) {
                this.sname = sname;
            }

            public String getSpic() {
                return spic;
            }

            public void setSpic(String spic) {
                this.spic = spic;
            }

            public String getSdeliveryphone() {
                return sdeliveryphone;
            }

            public void setSdeliveryphone(String sdeliveryphone) {
                this.sdeliveryphone = sdeliveryphone;
            }

            public String getSrealname() {
                return srealname;
            }

            public void setSrealname(String srealname) {
                this.srealname = srealname;
            }

            public String getSmerchantpic() {
                return smerchantpic;
            }

            public void setSmerchantpic(String smerchantpic) {
                this.smerchantpic = smerchantpic;
            }

            public String getScardcode() {
                return scardcode;
            }

            public void setScardcode(String scardcode) {
                this.scardcode = scardcode;
            }

            public String getScardfront() {
                return scardfront;
            }

            public void setScardfront(String scardfront) {
                this.scardfront = scardfront;
            }

            public String getScardback() {
                return scardback;
            }

            public void setScardback(String scardback) {
                this.scardback = scardback;
            }

            public String getSlicensecode() {
                return slicensecode;
            }

            public void setSlicensecode(String slicensecode) {
                this.slicensecode = slicensecode;
            }

            public String getSlicensepic() {
                return slicensepic;
            }

            public void setSlicensepic(String slicensepic) {
                this.slicensepic = slicensepic;
            }

            public String getSentertime() {
                return sentertime;
            }

            public void setSentertime(String sentertime) {
                this.sentertime = sentertime;
            }

            public String getSbusinesshours() {
                return sbusinesshours;
            }

            public void setSbusinesshours(String sbusinesshours) {
                this.sbusinesshours = sbusinesshours;
            }

            public String getSdeliveryprice() {
                return sdeliveryprice;
            }

            public void setSdeliveryprice(String sdeliveryprice) {
                this.sdeliveryprice = sdeliveryprice;
            }

            public int getSscore() {
                return sscore;
            }

            public void setSscore(int sscore) {
                this.sscore = sscore;
            }

            public int getSscorenumber() {
                return sscorenumber;
            }

            public void setSscorenumber(int sscorenumber) {
                this.sscorenumber = sscorenumber;
            }

            public String getSorderlevel() {
                return sorderlevel;
            }

            public void setSorderlevel(String sorderlevel) {
                this.sorderlevel = sorderlevel;
            }

            public String getSdistrict() {
                return sdistrict;
            }

            public void setSdistrict(String sdistrict) {
                this.sdistrict = sdistrict;
            }

            public String getSaddress() {
                return saddress;
            }

            public void setSaddress(String saddress) {
                this.saddress = saddress;
            }

            public String getSlongtitude() {
                return slongtitude;
            }

            public void setSlongtitude(String slongtitude) {
                this.slongtitude = slongtitude;
            }

            public String getSlatitude() {
                return slatitude;
            }

            public void setSlatitude(String slatitude) {
                this.slatitude = slatitude;
            }

            public String getStoken() {
                return stoken;
            }

            public void setStoken(String stoken) {
                this.stoken = stoken;
            }

            public String getWxpaypic() {
                return wxpaypic;
            }

            public void setWxpaypic(String wxpaypic) {
                this.wxpaypic = wxpaypic;
            }

            public String getAlipaypic() {
                return alipaypic;
            }

            public void setAlipaypic(String alipaypic) {
                this.alipaypic = alipaypic;
            }

            public String getWxAliPayPic() {
                return wxAliPayPic;
            }

            public void setWxAliPayPic(String wxAliPayPic) {
                this.wxAliPayPic = wxAliPayPic;
            }

            public long getSregtime() {
                return sregtime;
            }

            public void setSregtime(long sregtime) {
                this.sregtime = sregtime;
            }

            public String getSauthentication() {
                return sauthentication;
            }

            public void setSauthentication(String sauthentication) {
                this.sauthentication = sauthentication;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.sid);
                dest.writeString(this.sphone);
                dest.writeString(this.semail);
                dest.writeString(this.saccount);
                dest.writeString(this.spassword);
                dest.writeString(this.sname);
                dest.writeString(this.spic);
                dest.writeString(this.sdeliveryphone);
                dest.writeString(this.srealname);
                dest.writeString(this.smerchantpic);
                dest.writeString(this.scardcode);
                dest.writeString(this.scardfront);
                dest.writeString(this.scardback);
                dest.writeString(this.slicensecode);
                dest.writeString(this.slicensepic);
                dest.writeString(this.sentertime);
                dest.writeString(this.sbusinesshours);
                dest.writeString(this.sdeliveryprice);
                dest.writeInt(this.sscore);
                dest.writeInt(this.sscorenumber);
                dest.writeString(this.sorderlevel);
                dest.writeString(this.sdistrict);
                dest.writeString(this.saddress);
                dest.writeString(this.slongtitude);
                dest.writeString(this.slatitude);
                dest.writeString(this.stoken);
                dest.writeString(this.wxpaypic);
                dest.writeString(this.alipaypic);
                dest.writeString(this.wxAliPayPic);
                dest.writeLong(this.sregtime);
                dest.writeString(this.sauthentication);
            }

            public ShopBean() {
            }

            protected ShopBean(Parcel in) {
                this.sid = in.readInt();
                this.sphone = in.readString();
                this.semail = in.readString();
                this.saccount = in.readString();
                this.spassword = in.readString();
                this.sname = in.readString();
                this.spic = in.readString();
                this.sdeliveryphone = in.readString();
                this.srealname = in.readString();
                this.smerchantpic = in.readString();
                this.scardcode = in.readString();
                this.scardfront = in.readString();
                this.scardback = in.readString();
                this.slicensecode = in.readString();
                this.slicensepic = in.readString();
                this.sentertime = in.readString();
                this.sbusinesshours = in.readString();
                this.sdeliveryprice = in.readString();
                this.sscore = in.readInt();
                this.sscorenumber = in.readInt();
                this.sorderlevel = in.readString();
                this.sdistrict = in.readString();
                this.saddress = in.readString();
                this.slongtitude = in.readString();
                this.slatitude = in.readString();
                this.stoken = in.readString();
                this.wxpaypic = in.readString();
                this.alipaypic = in.readString();
                this.wxAliPayPic = in.readString();
                this.sregtime = in.readLong();
                this.sauthentication = in.readString();
            }

            public static final Creator<ShopBean> CREATOR = new Creator<ShopBean>() {
                @Override
                public ShopBean createFromParcel(Parcel source) {
                    return new ShopBean(source);
                }

                @Override
                public ShopBean[] newArray(int size) {
                    return new ShopBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeParcelable(this.shop, flags);
            dest.writeString(this.token);
        }

        public ExtendBean() {
        }

        protected ExtendBean(Parcel in) {
            this.shop = in.readParcelable(ShopBean.class.getClassLoader());
            this.token = in.readString();
        }

        public static final Creator<ExtendBean> CREATOR = new Creator<ExtendBean>() {
            @Override
            public ExtendBean createFromParcel(Parcel source) {
                return new ExtendBean(source);
            }

            @Override
            public ExtendBean[] newArray(int size) {
                return new ExtendBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.code);
        dest.writeString(this.msg);
        dest.writeParcelable(this.extend, flags);
    }

    public LoginBean() {
    }

    protected LoginBean(Parcel in) {
        this.code = in.readInt();
        this.msg = in.readString();
        this.extend = in.readParcelable(ExtendBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<LoginBean> CREATOR = new Parcelable.Creator<LoginBean>() {
        @Override
        public LoginBean createFromParcel(Parcel source) {
            return new LoginBean(source);
        }

        @Override
        public LoginBean[] newArray(int size) {
            return new LoginBean[size];
        }
    };
}
